<template>
  <div class="aboutUs">
    <div class="download_box">
        <a :href="url" class="download"></a>
    </div>
  </div>
</template>
<script>
import config from "@/config/env";
export default {
  data() {
    return {
      url: ''
    };
  },
  created() {
    var u = navigator.userAgent;
    var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
    if(isiOS){
      this.url='https://testflight.apple.com/join/LAxAvyeo'
    }else if(isAndroid){
      this.url=config.domain+'xingji.apk'
    }
  },
  methods: {
    
  },
};
</script>
<style scoped>
.download_box{
    width: 100%;
    position: relative;
    height: 100vh;
    background: url('../../assets/img/xiazai1.png')no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
}
.download{
    display: inline-block;
    width: 5.5rem;
    height: 1.03rem;
    background: url('../../assets/img/xiazai_btn.png') no-repeat;
    background-size: cover;
    position: absolute;
    bottom: 2rem;
}
</style>
